import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import {actions} from "./actions"
import {state,mutations,getters} from "./mutations"

import menu from "./modules/menu.js"
import role from "./modules/role.js"
import manage from "./modules/manage.js"
import cate from "./modules/cate.js"
import specs from './modules/specs.js'
import goods from './modules/goods.js'
import member from "./modules/member.js"
import banner from "./modules/banner.js"
import seckill from "./modules/seckill.js"


export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules:{
    menu,
    role,
    manage,
    cate,
    specs,
    goods,
    member,
    banner,
    seckill
  }
})
